<template>
  <div>
     <p>{{money}}</p>
     <p>{{myMoney}}</p>
        <button @click="$emit('dealclick',100)">按钮</button>
      <p>{{gender}}</p>
   </div>
</template>
 
<script>
export default {
  name: "MySOn",
  components: {},
  props: {
    //money:Number,
    money:{
        type:Number
    },
    myMoney:{
        type:Number,
        required:true
    },
    gender:{
         type:[String,Number],
        required:true,
        validator:function(value){
            return ["男","女"].includes(value)
        }
    },
    name:{
        type:String,
        default:"李"
    },
     arr:{
        type:Object,
        default:()=>( {name:"myson"})
    }
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  created() {},
  methods: {}
};
</script>

<style scoped>
     
</style>